package Level02_two;
//2 岁的红色的公鸡会吃饭(啄米)和打鸣
//1 岁的黑色的鸭子会吃饭(吃鱼)和游泳.
public class Test {
    public static void main(String[] args) {
        Cock cock = new Cock("红色",2);
        cock.eat();
        cock.crow();
        Duck duck = new Duck("黑色",1);
        duck.eat();
        duck.swim();
    }
}
